package com.example.screen_data.movie;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/movie")
public class AppController {

    private AppService appService;

    @Autowired
    public AppController(AppService appService) {
        this.appService = appService;
    }

    @GetMapping("/getData0")
    public Map<String, Object> getData0(){
        return appService.getData0();
    }

    @GetMapping("/getData1")
    public Map<String, Object> getData1(){
        return appService.getData1();
    }

    @GetMapping("/getData2")
    public List<Map<String, Object>> getData2(){
        return appService.getData2();
    }

    @GetMapping("/getData3")
    public List<Map<String, Object>> getData3(){
        return appService.getData3();
    }

    @GetMapping("/getData4")
    public List<Map<String, Object>> getData4(){
        return appService.getData4();
    }

    @GetMapping("/getData5")
    public Map<String, Object> getData5(){
        return appService.getData5();
    }

    @GetMapping("/getData6")
    public List<Map<String, Object>> getData6(){
        return appService.getData6();
    }

}
